package com.lovo.order.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;



@Data
@Document(indexName = "ticket_index")
public class TicketEntity_Index {
    @Id
    @Field(type = FieldType.Keyword)
    private long tid;
    @Field(type = FieldType.Keyword)
    private String movieName;
    @Field(type = FieldType.Keyword)
    private float price;
    @Field(type = FieldType.Keyword)
    private int num;
    @Field(type = FieldType.Keyword)
    private String movieDate;
    @Field(type = FieldType.Text)
    private String info;
}
